﻿using Spider.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spider.Common
{
    public delegate void UILogEventHandler(ProcessState state, string message);

    public interface ISpider
    {
        void SpiderData(object model);

        void SpiderAbort();

        /// <summary>
        /// 同步进度消息到页面
        /// </summary>
        event UILogEventHandler SyncLog;
    }
}
